package Program;
import java.util.ArrayList;

import simulator.labyrinth.Labyrinth;
import simulator.robot.Simulator;
import Gui.MainGui;
import Gui.Simulator.SimulatorGui;
import Robot.RobotControl;


public class Program {
	
	private static RobotControl robotControl;
	
	public static final SimulatorGui simulatorGui = new SimulatorGui();



	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		
		robotControl = new RobotControl();
		
		Simulator simulator = new Simulator();
		
		MainGui window = new MainGui(robotControl);
		robotControl.setMainGui(window);
		robotControl.setSimulator(simulator);
		
		simulatorGui.setSimulator(simulator);
		
		Execute execute = new Execute(robotControl);
		robotControl.setExecuteThread(execute);

		simulatorGui.setSimulatorListener(execute.getSimulatorListener());
		execute.start();
	}

}
